package com.qf.zhijia.mapper;

import com.qf.zhijia.pojo.Address;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * @author Canaan
 * @version V1.0
 * @data 2020/09/05
 **/

public interface AddressMapper {

    List<Address> selectAddressByUid(int uId);//根据uid查询所有地址

    public void insertAddress(Address address);//插入地址

    public void deleteAddressByAId(String aId);//删除地址

    public void setAddressDeFalut(String aId);//设置默认地址

    public void setAddressCommons(String aId, int uId);//将默认地址取消

    public void updateAddressByAid(Address address);//更新地址

}
